package com.cari.oa.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cari.oa.dao.BaseDao;
import com.cari.oa.dao.MarketProjectCommentDao;
import com.cari.oa.domain.MarketProjectCommentEntity;

@Service
@Transactional(rollbackFor = Exception.class)
public class MarketProjectCommentService extends BaseService<MarketProjectCommentEntity> {
	
	@Resource
	private MarketProjectCommentDao projectCommentDao;
	
	/**
     * 根据项目id获取项目留言列表
     * @param enname 系统用户英文名
     * @return 系统实体对象
     */
	public List<MarketProjectCommentEntity> getListByID(String id) {
    	return projectCommentDao.getListByID(id);
    }
	
	/**
     * 获取最新留言时间及其相关项目id
     * @return
     * guotingting 2013-1-24 下午3:13:26
     */
	public List<MarketProjectCommentEntity> getMaxDateList() {
    	return projectCommentDao.getMaxDateList();
    }

	@Override
	public BaseDao<MarketProjectCommentEntity> getDao() {
		return projectCommentDao;
	}

}
